﻿using System;
using Microsoft.Extensions.DependencyInjection;

namespace MoBaoPay
{
    public static class ServiceCollectionExtensions
    {
        public static void AddMoBaoPay(this IServiceCollection services)
        {
            services.AddHttpClient(MoBaoPayClient.Name);
            services.AddSingleton<IMoBaoPayClient, MoBaoPayClient>();
        }
    }
}
